package com.huangkailong.designpattern.proxy.common;

/**
 * 订单服务实现.
 *
 * @author huangkl
 * @since 1.0.0
 */
public class OrderServiceImpl implements OrderService {
    private final OrderDao orderDao;

    public OrderServiceImpl(OrderDao orderDao) {
        this.orderDao = orderDao;
    }

    @Override
    public boolean createOrder(Order order) {
        orderDao.insertOrder(order);
        return true;
    }
}
